﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InterviewerContent.aspx.cs" Inherits="blackhouse.Aparts.Web.Pages.InterviewerContent" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    
    <link rel="stylesheet" type="text/css" href="/csshandler.ashx?skin=blackhouse" />
   
</head>
<body>
    <form id="form1" runat="server">
        
        <asp:HiddenField runat="server" ID="hfStartMenu" ClientIDMode="Static" Value="0" />
    <ul class="analytics-menu">
        <li forc="analytics-reservations">Lista rezerwacji</li>
        <li forc="pnlReservationDetails">Szczegóły rezerwacji</li>
    </ul>
    <div class="clear"></div>
    <div id="analytics-reservations">

        <asp:GridView ID="GridView1" EnablePersistedSelection="true" EnableViewState="false" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="ReservationsObjectDataSource" AutoGenerateColumns="False" DataKeyNames="ReservationId" CssClass="interviewer-reservations-grid" OnRowDataBound="GridView1_RowDataBound" BorderStyle="None" BorderWidth="0px" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="ReservationNumber" HeaderText="Rezerwacja" SortExpression="reservationnumber" />
                <asp:HyperLinkField HeaderText="Apartament" SortExpression="apartment" />
                <asp:BoundField DataField="DepartureDate" HeaderText="Koniec rezerwacji" SortExpression="departuredate" DataFormatString="{0:D}" />
                
            </Columns>
            <HeaderStyle CssClass="analytics-header" />
            <PagerStyle CssClass="interviewer-reservations-pager" />
            <RowStyle CssClass="analytics-row" />
            <SelectedRowStyle CssClass="interviewer-resv-selected" />
            <SortedAscendingCellStyle CssClass="interviewer-sort-cell" />
            <SortedAscendingHeaderStyle CssClass="analytics-asc" />
            <SortedDescendingCellStyle CssClass="interviewer-sort-cell" />
            <SortedDescendingHeaderStyle CssClass="analytics-desc" />
        </asp:GridView>
        <asp:ObjectDataSource
            ID="ReservationsObjectDataSource"
            runat="server"
            TypeName="blackhouse.Aparts.Web.DataSources.InterviewerWebReservations,blackhouse.Aparts.Web"
            SortParameterName="sortColumns"
            EnablePaging="True"
            SelectCountMethod="SelectCount"
            StartRowIndexParameterName="startRecord"
            MaximumRowsParameterName="maxRecords"
            SelectMethod="GetAllReservations"></asp:ObjectDataSource>
    </div>
    <div class="clear"></div>
    <asp:Panel ID="pnlReservationDetails" ClientIDMode="Static" runat="server" Visible="false" CssClass="analytics-reservation-details">
        <table cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <td class="acs-client">Klient
                    </td>
                    <td class="acs-reservation">Rezerwacja <b><asp:Literal runat="server" ID="ltlReservationNumber" /></b></td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="acs-client"><asp:Literal runat="server" ID="ltlClientName" /><br />
                        tel. <asp:Literal runat="server" ID="ltlClientPhone" />
                    </td>
                    <td class="acs-reservation">
                        <table>
                            <tr>
                                <td>Od:</td>
                                <td><asp:Literal runat="server" ID="ltlArrivalDate" /></td>
                            </tr>
                            <tr>
                                <td>Do: </td>
                                <td><asp:Literal runat="server" ID="ltlDepartureDate" /></td>
                            </tr>
                            <tr>
                                <td>Dni: </td>
                                <td><asp:Literal runat="server" ID="ltlTotalDays" /></td>
                            </tr>
                            <tr>
                                <td>Liczba osób: </td>
                                <td><asp:Literal runat="server" ID="ltlPersonCount" /></td>
                            </tr>
                            <tr>
                                <td>Apartament: </td>
                                <td><asp:Literal runat="server" ID="ltlApartment" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
            <thead>
                <tr>
                    <td class="acs-client">Koszt
                    </td>
                    <td class="acs-reservation">Uwagi recepcji</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="acs-cost">
                        <table cellpadding="0" cellspacing="0">

                            <tr class="acs-cost-head">
                                <td>Do zapłaty:</td>
                                <td>Rabat:</td>
                            </tr>
                            <tr class="acs-cost-body">
                                <td><asp:Literal runat="server" ID="ltlPayCost" /></td>
                                <td><asp:Literal runat="server" ID="ltlRabat" /></td>
                            </tr>
                        </table>
                    </td>
                    <td class="acs-overview"><asp:Literal runat="server" ID="ltlOfficeOverview"></asp:Literal>
                    </td>
                </tr>
            </tbody>
            <thead>
                <tr>
                    <td>Zamówione usługi dodatkowe</td>
                    <td>Uwagi klienta</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><asp:Literal runat="server" ID="ltlAdditionalServices" /></td>
                    <td><asp:Literal runat="server" ID="ltlClientOverview" /></td>
                </tr>
            </tbody>
        </table>
        <asp:HyperLink ID="lnkToAddOpinion" runat="server" Target="_parent" CssClass="blue-button interviewer-addopinion">Dodaj opinię</asp:HyperLink>
    </asp:Panel>
        <script language="javascript" type="text/javascript">
            function __doPostBack(eventTarget, eventArgument) {
                if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
                    theForm.__EVENTTARGET.value = eventTarget;
                    theForm.__EVENTARGUMENT.value = eventArgument;

                    if (window.parent.ShowInterviewerLoader)
                        window.parent.ShowInterviewerLoader();

                    theForm.submit();
                }
            }
        </script>
    </form>
</body>
</html>
